import {} from "https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.js";

const $submit =$('.submit');
const $tel =$('.tel');
const $password=$('.password');


$submit.on('click',function(){
    
   $.ajax({
       type:'post',
       url:'http://10.31.165.32/com.111.www/php/login_module.php',
       data:{
        tel:$tel.val(),
        password:$password.val(),
       }
   }).done(function(data){
    if(data==1){
        localStorage.setItem('loginname',$tel.val());
        location.href = 'index111.html';
    }else if(data==0){
        alert('用户名或密码错误');
        $tel.val('');
    }
   });
})




